﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;
namespace FTchina.Api
{
    /// <summary>
    ///Bottom 的摘要说明
    /// </summary>
    public static class Bottom
    {
        public static string show()
        {
            StringBuilder message = new StringBuilder();
            
            message.Append(" Powered By");
            message.Append(" ");
            message.Append("<a href=\"http://www.weibaohui.com\" target=\"_blank\">");  // 必须保留此链接!!!
            message.Append(" FTchina");
            message.Append("</a>");
            message.Append(" ");

            message.AppendFormat("Processed in:" + Copyright.CommonContext.Current.ExcuteTime + " second(s)");
            message.Append(" ");
            message.AppendFormat("MemoryUsage:" + Copyright.CommonContext.Current.MemoryUsage + "MB");
            message.Append(" ");
            if (Copyright.CommonContext.Current.QueryExecutions > 0)
            {
                message.Append(Copyright.CommonContext.Current.QueryExecutions + " queries");

            }
            else
            {
                message.Append("no queries");
            }
            return message.ToString();
        }
    }

}